﻿using System;
using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.login
{
    public class SHActivityPrizeReq : Message
    {
        public static int TYPE = 7;
        public static int ID = 46;

        private int _prize;

        public int Prize
        {
            get
            {
                return _prize;
            }

            set
            {
                _prize = value;
            }
        }

        public static SHActivityPrizeReq Create(int prize)
        {
            SHActivityPrizeReq ap = new SHActivityPrizeReq();
            ap.Prize = prize;
            return ap;
        }


        public void decode(Input _in)
        {        
        }

        public void encode(Output _out)
        {
            _out.writeInt(_prize);
        }
   
        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("");
        }
    }
}
